package com.yc.cloud.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yc.cloud.common.orm.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 目标检测位置信息表
 * </p>
 *
 * @author kinggu
 * @since 2025-07-22
 */
@Data
@TableName("alarm_detection_position")
public class DetectionPosition extends BaseEntity  {

    private static final long serialVersionUID = 1L;

    /**
     * 关联告警记录ID (alarm_record.id)
     */
    @TableField("alarm_record_id")
    private Long alarmRecordId;

    /**
     * 目标类型 (如: 人, 车, 烟等)
     */
    @TableField("target_type")
    private String targetType;

    /**
     * 置信度 (0-1之间的浮点数)
     */
    @TableField("confidence")
    private Float confidence;

    /**
     * 左上角x坐标
     */
    @TableField("x")
    private Integer x;

    /**
     * 左上角y坐标
     */
    @TableField("y")
    private Integer y;

    /**
     * 宽度
     */
    @TableField("width")
    private Integer width;

    /**
     * 高度
     */
    @TableField("height")
    private Integer height;

    /**
     * 逻辑删除: 0-未删除, 1-已删除
     */
    @TableField("is_deleted")
    private Boolean deleted;

    public static final String AlarmRecordId = "alarm_record_id";
    public static final String TargetType = "target_type";
    public static final String Confidence = "confidence";
    public static final String X = "x";
    public static final String Y = "y";
    public static final String Width = "width";
    public static final String Height = "height";
    public static final String Deleted = "is_deleted";
} 